package com.itheima.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.service.OrderSettinglistService;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;

@RestController
@RequestMapping("orderSettinglist")
public class OrderSettinglistController {

    @Reference(version = "1.0.0")
    private OrderSettinglistService orderSettinglistService;

    @PostMapping("findPage")
    public Result findPage(@RequestBody QueryPageBean queryPageBean){
        return  orderSettinglistService.findPage(queryPageBean);
    }

    @GetMapping("isshow")
    public Result isshow(Integer id){
        return orderSettinglistService.isshow(id);
    }

    @GetMapping("noshow")
    public Result noshow(Integer id){
        return orderSettinglistService.noshow(id);
    }

    @PostMapping("findAllSetMeal")
    public Result findAllSetMeal(){
        return  orderSettinglistService.findAllSetMeal();
    }
    @PostMapping("add")
    public Result add(@RequestBody HashMap<String, Object> map){
        return  orderSettinglistService.add(map);
    }

}
